<!DOCTYPE HTML>
<html>
<head>
<title>${site.name} - Powered by JavaCMS</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" type="text/css" href="/${mobileRes!}/css/index.css"> 
<link href="/${mobileRes!}/css/pic/public.css" rel="stylesheet" type="text/css"/>
<link href="/${mobileRes!}/css/pic/share.css" rel="stylesheet" type="text/css"/>

<link href="${resSys}/front.css" rel="stylesheet" type="text/css"/>
<link href="${resSys}/jqueryUI/jquery.ui.css" rel="stylesheet" type="text/css"/>
<script src="${resSys}/jquery.js" type="text/javascript"></script>
<script src="${resSys}/jqueryUI/jquery-ui.js" type="text/javascript"></script>
<script src="${resSys}/front.js" type="text/javascript"></script>
<script src="/${res}/js/common.js" type="text/javascript"></script>
<script type="text/javascript">
$(function() {
	Cms.siteFlow("${base}", location.href, document.referrer);
});
</script>
</head>

<body>
<div class="viewport">
  [#include "../include/header_wldc.html" /]
    <div class="vote-result">
    [#if status?? && status!=0]
    <div class="survey">
        [#if status==1]
        投票ID不能为空
        [#elseif status==2]
        投票项不能为空  
        [#elseif status==100]
        投票主题不存在
        [#elseif status==101]
        投票项不合法
        [#elseif status==501]
        需要登录才能投票
        [#elseif status==200]
        投票主题已经关闭
        [#elseif status==201]
        投票的选项个数大于允许的个数
        [#elseif status==202]
        投票还没有开始
        [#elseif status==203]
        投票已经结束
        [#elseif status==204]
        您已经投过票了，请勿重复投票！<!--，同一会员不能重复投票-->
        [#elseif status==205]
        您已经投过票，请勿重复投票！了<!--，，同一IP不能重复投票-->
        [#elseif status==206]
        您已经投过票了，请勿重复投票！<!--，，同一COOKIE不能重复投票-->
        [#else]
        投票失败  
        [/#if]
    </div>
    
    [#else]
    <div class="tptitle1">
    投票主题：<span class="red">${vote.title?html}</span><p>总参与人数：<span class="red">${vote.totalCount}</span>人</p>
    </div>
    <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
    [#list vote.subtopics as subTopic]
    <tr>
    <td width="30" height="30" align="center" style="color:#1a7eed; font-size:14px; font-weight:bold;">${subTopic_index+1}、</td>
    <td>
    <span style="color:#1a7eed; font-size:14px; font-weight:bold;">${subTopic.title?html}</span>
    [#if subTopic.isText]<a href="${base}/vote_reply_view.jspx?subId=${subTopic.id}" target="_blank">查看回复结果</a>[/#if]
    </td>
    </tr>
    [#if subTopic.isRadio||subTopic.isMulti]
    [#list subTopic.voteItems as item]
    <tr>
    <td width="30" height="30" align="center">[${item_index+1}].</td>
    <td>${item.title?html} - (${item.voteCount}票)</td>
    </tr>
    <tr>
    <td height="30">&nbsp;</td>
    <td>
    <img src="/${mobileRes!}/images/vote_bar.gif" width="${item.percent}%" border="0" style="height:10px; width:70%;"/> ${item.percent}%
    </td>
    </tr>
    [/#list]
    [/#if]
    [/#list]
    
  </table>
    [/#if]
   </div>
</div>
</body>
</html>